import { requestGet, requestPost } from "./request/request";




/**
 * 获取所有折扣商品
 * @returns
 */
export const getPromoteGoods = (obj) => {
   return requestGet("api/Wechat/Merchant_GetPromoteGoods",obj)
  };


/**
 * 获取单个商户及商品
 * @returns
 */
export const getMerchant=(obj)=>{
   return requestGet("api/WeChat/Merchant_GetTypesAndGoods",obj)
}



/**
 * 商户-搜索商品
 * @returns
 */
export const searchGoods=(obj)=>{
   return requestGet("api/WeChat/Merchant_SearchGoods",obj)
}

/**
 * 商户-获取单个商品详情
 * @returns
 */
export const getSingleGoods=(obj)=>{
   return requestGet("api/WeChat/Merchant_GetSingleGoods",obj)
}


/**
 * 商户-购物车生成订单
 * @returns
 */
export const GenerateOrder=(obj)=>{
   return requestPost("/api/WeChat/GenerateOrder",obj)
}



